package dsx.lock;

class _LockValue {
	int type;		// 0 表锁，1 行锁
	String key;
	String ownerKey;
	long timeout;
	
	public _LockValue(int type, String key, String ownerKey, long timeout) {
		this.type = type;
		this.key = key;
		this.ownerKey = ownerKey;
		this.timeout = timeout;
	}
	
	@Override
	public boolean equals(Object obj) {
		_LockValue lockValue = (_LockValue) obj;
		return (this.key.equals(lockValue.key) && this.ownerKey.equals(lockValue.ownerKey) && this.timeout == lockValue.timeout);
	}
	
}
